package top.huxy.boot.model.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author huxy
 * @date 2021-09-17
 **/
@Data
@NoArgsConstructor
public class VisitLog implements Serializable {

    private Integer id;

    private String requestId;

    private String handler;

    private String method;

    private String uri;

    private String params;

    private String ip;

    private String city;

    private String os;

    private String browser;

    /**
     * 耗时，毫秒
     **/
    private long time;

    /**
     * 是否执行成功
     **/
    private Boolean state;

    private long createTime;

    private String remake;

    public VisitLog(String requestId, String handler, String method, String uri, String params, String ip, String city, String os, String browser, long time, Boolean state, long createTime, String remake) {
        this.requestId = requestId;
        this.handler = handler;
        this.method = method;
        this.uri = uri;
        this.params = params;
        this.ip = ip;
        this.city = city;
        this.os = os;
        this.browser = browser;
        this.time = time;
        this.state = state;
        this.createTime = createTime;
        this.remake = remake;
    }
}
